<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageContent">
    <form action="<?php echo U('save_shop_leve');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="id" value="<?php echo ($va["id"]); ?>"/>
        <div class="form-group">
            <label class="x100">分类名称:</label>
            <input type="text" name="name" data-rule="required" value="<?php echo ($va["name"]); ?>"/>
        </div>
        <!-- <div class="form-group">
            <label class="x100">成为会员等级方式:</label>
            <select name="method" data-toggle="selectpicker">
                <option value="">--请选择--</option>
                <option value="1" <?php if($va['method'] == '1'): ?>selected<?php endif; ?>>直接消费</option>
                <option value="2" <?php if($va['method'] == '2'): ?>selected<?php endif; ?>>累计消费</option>
            </select>
        </div> -->
        <div class="form-group">
            <label class="x100">排序号:</label>
            <input type="text" name="sort" data-rule="required" value="<?php echo ($va["sort"]); ?>" maxlength="10"/>
            <span class="text-warning">数字越大，越排在前面</span>
        </div>
        <p>
			<label class="x100">状态:</label>
			<input type="radio" name="status" value="0" data-toggle="icheck" data-label="开启" <?php if($va["status"] == '0' or $va == null): ?>checked="checked"<?php endif; ?> />
			<input type="radio" name="status" value="1" data-toggle="icheck" data-label="关闭" <?php if($va["status"] == '1'): ?>checked="checked"<?php endif; ?>/>
		</p>
    </form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>